/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.isn.atencionemergencia.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
/**
 *
 * @author pool
 */
@Embeddable
public class DetalleResultadooaeVacunaPK implements Serializable {
	private static final long serialVersionUID = 1L;
	@Basic(optional = false)
    @Column(name = "Fecha_Roae_Vacu")
    @Temporal(TemporalType.TIMESTAMP)
    private Date fechaRoaeVacu;
    @Basic(optional = false)
    @Column(name = "Cod_Vacuna", columnDefinition="CHAR(5) unsigned")
    private String codVacuna;
    @Basic(optional = false)
    @Column(name = "Num_roae", columnDefinition="CHAR(5) unsigned")
    private String numroae;

    public DetalleResultadooaeVacunaPK() {
    }

    public DetalleResultadooaeVacunaPK(Date fechaRoaeVacu, String codVacuna, String numroae) {
        this.fechaRoaeVacu = fechaRoaeVacu;
        this.codVacuna = codVacuna;
        this.numroae = numroae;
    }

    public Date getFechaRoaeVacu() {
        return fechaRoaeVacu;
    }

    public void setFechaRoaeVacu(Date fechaRoaeVacu) {
        this.fechaRoaeVacu = fechaRoaeVacu;
    }

    public String getCodVacuna() {
        return codVacuna;
    }

    public void setCodVacuna(String codVacuna) {
        this.codVacuna = codVacuna;
    }

    public String getNumroae() {
        return numroae;
    }

    public void setNumroae(String numroae) {
        this.numroae = numroae;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (fechaRoaeVacu != null ? fechaRoaeVacu.hashCode() : 0);
        hash += (codVacuna != null ? codVacuna.hashCode() : 0);
        hash += (numroae != null ? numroae.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof DetalleResultadooaeVacunaPK)) {
            return false;
        }
        DetalleResultadooaeVacunaPK other = (DetalleResultadooaeVacunaPK) object;
        if ((this.fechaRoaeVacu == null && other.fechaRoaeVacu != null) || (this.fechaRoaeVacu != null && !this.fechaRoaeVacu.equals(other.fechaRoaeVacu))) {
            return false;
        }
        if ((this.codVacuna == null && other.codVacuna != null) || (this.codVacuna != null && !this.codVacuna.equals(other.codVacuna))) {
            return false;
        }
        if ((this.numroae == null && other.numroae != null) || (this.numroae != null && !this.numroae.equals(other.numroae))) {
            return false;
        }
        return true;
    }
    
}
